<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class QualityType extends Model
{
    use HasFactory;
    
    protected $fillable = ['title','project_id','cycle','content','type'];

    const POSTONLY = ['title','project_id','cycle','content','type'];

    const CYCLE = ['一天检查一次','两天检查一次','三天检查一次','五天检查一次'];


    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }
}
